/**
 * jims
 */
package com.jims.master.modules.finance.entity;

import org.hibernate.validator.constraints.Length;
import javax.validation.constraints.NotNull;

import com.jims.master.common.persistence.DataEntity;

/**
 * 结账明细记录Entity
 * @author 赵宁
 * @version 2017-03-30
 */
public class InpAcctDetail extends DataEntity<InpAcctDetail> {
	
	private static final long serialVersionUID = 1L;
	private String acctNo;		// 结账号
	private String acctId;		// 结账主表ID
	private String subjCode;		// 会计科目
	private Double costs;		// 费用
	private Double income;		// 实收
	private String orgId;		// 机构ID
	
	public InpAcctDetail() {
		super();
	}

	public InpAcctDetail(String id){
		super(id);
	}

	@Length(min=1, max=200, message="结账号长度必须介于 1 和 200 之间")
	public String getAcctNo() {
		return acctNo;
	}

	public void setAcctNo(String acctNo) {
		this.acctNo = acctNo;
	}
	
	@Length(min=1, max=64, message="结账主表ID长度必须介于 1 和 64 之间")
	public String getAcctId() {
		return acctId;
	}

	public void setAcctId(String acctId) {
		this.acctId = acctId;
	}
	
	@Length(min=1, max=10, message="会计科目长度必须介于 1 和 10 之间")
	public String getSubjCode() {
		return subjCode;
	}

	public void setSubjCode(String subjCode) {
		this.subjCode = subjCode;
	}
	
	@NotNull(message="费用不能为空")
	public Double getCosts() {
		return costs;
	}

	public void setCosts(Double costs) {
		this.costs = costs;
	}
	
	@NotNull(message="实收不能为空")
	public Double getIncome() {
		return income;
	}

	public void setIncome(Double income) {
		this.income = income;
	}
	
	@Length(min=1, max=64, message="机构ID长度必须介于 1 和 64 之间")
	public String getOrgId() {
		return orgId;
	}

	public void setOrgId(String orgId) {
		this.orgId = orgId;
	}
	
}